<table class="table table-th-block table-hover">                                
      <thead>
            <tr>                                        
                 <td class="text_content" style="width:50px;">编号</td>
                 <td class="text_content">事务名称</td>
                 <td class="text_content">发起人</td>
                 <td class="text_content">开始时间</td>
                 <td class="text_content">结束时间</td>
                 <td class="text_content">项目名称</td>
                 <td class="text_content">操作</td>
            </tr>                                                             
      </thead>                                
      <tbody>                                    
           <volist name="rs.data" id="val"> 
                 <tr>                    
                       <td class="text_content sub color_hover detail" style='text-align:center;vertical-align:middle; line-height:25px'>{$val.event_id}</td>
                       <td  class="text_content" style='text-align:center;vertical-align:middle;width:180px;'>{$val.event_name}</td>
                       <td  class="text_content" style='text-align:center;vertical-align:middle'>{$val.event_launch_name}</td>
                       <td  class="text_content" style='text-align:center;vertical-align:middle'>{$val.event_startTime}</td>
                       <td  class="text_content" style='text-align:center;vertical-align:middle'>{$val.event_endTime}</td>
                       <td  class="text_content" style='text-align:center;vertical-align:middle'>{$val.project_name}</td>
                       <td  class="text_content" style='text-align:center;vertical-align:middle'>
                             <a href='javascript:void(0)' onclick="to_upt({$val.event_id})" title='Edit'>查看</a>&nbsp;|&nbsp;
                             <a href='javascript:void(0)' onclick='del_project({$val.event_id})' title='Delete'>删除</a>
                       </td>
                 </tr>
            </volist>
      </tbody>
</table>
<ul class="pagination success">{$rs.show}</ul>
<script type="text/javascript">
  $(".current").css({background:"#8CC152",color:"white"});
//删除
  function del_project(a){
  if(confirm("确认删除?")){
    $.get('__URL__/delAct?event_id='+a,'',function(){window.location='__SELF__';},'json');  
  }
}
  //首页
    $(".first").click(function(){
         var page = $(this).attr("name");
         var search_name = $("#search_name").val();
         var search_time = $("#search_time").val();
        $.ajax({
            url:"__URL__/search",
            data:{"page":page,"event_startTime":search_time,"event_name":search_name,"project_name":search_name},
            type:"post",
            success:function(data){                                                 
                $(".div_search").html(data);
            }
        });
    });

//上一页
    $(".prev").click(function(){      
        var search_name = $("#search_name").val();        
        var current = $(".current").attr("title");
        var search_time = $("#search_time").val();
        var current = parseInt($(".current").attr("title"));
        current -=1;
        //alert(current);
        $.ajax({
            url:"__URL__/search",
            data:{"page":current,"event_startTime":search_time,"event_name":search_name,"project_name":search_name},
            type:"post",
            success:function(data){
                $(".div_search").html(data);
            }
        });
    });
//第几页
    $(".number").click(function(){
        var search_name = $("#search_name").val();        
        var num = $(this).attr("title");
        var search_time = $("#search_time").val();
        $.ajax({
            url:"__URL__/search",
            data:{"page":num,"event_startTime":search_time,"event_name":search_name,"project_name":search_name},
            type:"post",
            success:function(data){
                $(".div_search").html(data);
            }
        });
    });
//下一页
    $(".next").click(function(){
        var search_name = $("#search_name").val();        
        var current = $(".current").attr("title");
        var search_time = $("#search_time").val();
        var current = parseInt($(".current").attr("title"));
        current +=1;
       // alert(current);                                    
        $.ajax({
            url:"__URL__/search",
            data:{"page":current,"event_startTime":search_time,"event_name":search_name,"project_name":search_name},
            type:"post",
            success:function(data){
                $(".div_search").html(data);
            }
        });
    });
//尾页
    $(".last").click(function(){
        var page = $(this).attr("name");
        var search_name = $("#search_name").val();
        var search_time = $("#search_time").val();                                            
        $.ajax({
            url:"__URL__/search",
            data:{"page":page,"event_startTime":search_time,"event_name":search_name,"project_name":search_name},
            type:"post",
            success:function(data){                                         
                $(".div_search").html(data);
            }
        });
    });

//查看
function to_upt(a){
    $.ajax({
      url:"__URL__/to_update",
      data:{'event_id':a},
      type:"post",
      success:function(data){
        $('.event-log').html(data);
      }
    });
};
</script>